package com.ruoyi.shop.domain;

import java.math.BigDecimal;

import com.ruoyi.address.domain.Address;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 shop
 * 
 * @author 张法炀
 * @date 2025-05-18
 */
public class Shop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品名 */
    @Excel(name = "商品名")
    private String name;

    /** 原价格 */
    @Excel(name = "原价格")
    private BigDecimal price;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 介绍 */
    @Excel(name = "介绍")
    private String introduce;

    /** 商品种类表的id */
    @Excel(name = "商品种类表的id")
    private Long categoryId;

    /** 创建管理员 */
    @Excel(name = "创建管理员")
    private String createUser;

    /** 修改管理员 */
    @Excel(name = "修改管理员")
    private String updateUser;

    /** 是否在打折，0：是，1：否 */
    @Excel(name = "是否在打折，0：是，1：否")
    private Long isSole;

    /** 打折力度，打八五折 0.85 */
    @Excel(name = "打折力度，打八五折 0.85")
    private Long discount;

    /** 现价：discount*0.85 */
    @Excel(name = "现价：discount*0.85")
    private BigDecimal solePrice;



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    public void setIsSole(Long isSole) 
    {
        this.isSole = isSole;
    }

    public Long getIsSole() 
    {
        return isSole;
    }

    public void setDiscount(Long discount) 
    {
        this.discount = discount;
    }

    public Long getDiscount() 
    {
        return discount;
    }

    public void setSolePrice(BigDecimal solePrice) 
    {
        this.solePrice = solePrice;
    }

    public BigDecimal getSolePrice() 
    {
        return solePrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("stock", getStock())
            .append("introduce", getIntroduce())
            .append("categoryId", getCategoryId())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isSole", getIsSole())
            .append("discount", getDiscount())
            .append("solePrice", getSolePrice())
            .toString();
    }
}
